package com.etc.dao;

import com.etc.pojo.Authority;
import org.apache.ibatis.annotations.Select;

import java.util.HashMap;
import java.util.List;

public interface AuthorityMapper {
    int deleteByPrimaryKey(Integer id);

    int insert(Authority record);

    int insertSelective(Authority record);

    Authority selectByPrimaryKey(Integer id);

    int updateByPrimaryKeySelective(Authority record);

    int updateByPrimaryKey(Authority record);

    @Select(" select id, name, path from authority ")
    List<Authority> findAll();

    void deleteByUname(String username);

    void insertAr(HashMap toString);
}